package com.example.sxmall.dao.mapper;

import com.example.sxmall.dao.pojo.Second_kills;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface Second_killsMapper {
    /**
     * 查看秒杀商品列表
     * @return
     */
    public List<Second_kills> listSecond_kills();

    /**
     * 根据ID查询
     * @param skid
     * @return
     */
    public Second_kills findSecond_killsById(@Param("skid") Integer skid);

    /**
     * 添加
     * @param second_kills
     * @return
     */
    public int insertSecond_kills(@Param("second_kills") Second_kills second_kills);

    /**
     * 删除
     * @param skid
     * @return
     */
    public int deleteSecond_kills(@Param("skid") int skid);

    /**
     * 动态修改
     * @param second_kills
     * @return
     */
    public int updateSecond_kills(@Param("second_kills") Second_kills second_kills);
}
